package com.hsurosy.api.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author Hsu琛君珩
 * @Date 2024-11-19 18:02
 * @Description 抽奖策略规则权重应答对象
 * @Version: v1.0.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RaffleStrategyRuleWeightResponseDTO {

    /** 权重规则配置的抽奖次数 */
    private Integer ruleWeightCount;
    /** 用户在一个活动下完成的总抽奖次数 */
    private Integer userActivityAccountTotalUseCount;
    /** 当前权重可抽奖范围 */
    private List<StrategyAward> strategyAwards;

    /**
     * 权重策略对应的奖品信息，描述具体奖品的标识和名称
     */
    @Data
    public static class StrategyAward {
        /** 奖品ID */
        private Integer awardId;
        /** 奖品标题 */
        private String awardTitle;
    }

}
